package cn.fastoo.common.entity.product.Query;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by lowkey on 17/7/24.
 */
@Table(name = "    `product_category_attrgroup`  pca   INNER JOIN  `product_attr_group` pag on pca.`product_attr_group_id`  = pag.id ")
public class ViewProductCategoryAttrgroup {


    /** 主键ID **/
    @Id
    @Column(name = "id",columnDefinition = "pca.id")
    private Long id;

    @Column(name = "product_category_id",columnDefinition = "pca.product_category_id")
    private Long productCategoryId;

    @Column(name = "product_attr_group_id",columnDefinition = "pca.product_attr_group_id")
    private Long productAttrGroupId;

    @Column(name = "product_attr_group_name",columnDefinition = "pag.name")
    private String productAttrGroupName;

    private List<ViewProductCategoryAttrgroupAttr> attrs = new ArrayList<>();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductCategoryId() {
        return productCategoryId;
    }

    public void setProductCategoryId(Long productCategoryId) {
        this.productCategoryId = productCategoryId;
    }

    public Long getProductAttrGroupId() {
        return productAttrGroupId;
    }

    public void setProductAttrGroupId(Long productAttrGroupId) {
        this.productAttrGroupId = productAttrGroupId;
    }

    public String getProductAttrGroupName() {
        return productAttrGroupName;
    }

    public void setProductAttrGroupName(String productAttrGroupName) {
        this.productAttrGroupName = productAttrGroupName;
    }

    public List<ViewProductCategoryAttrgroupAttr> getAttrs() {
        return attrs;
    }

    public void setAttrs(List<ViewProductCategoryAttrgroupAttr> attrs) {
        this.attrs = attrs;
    }
}
